<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Netease_crawl extends CI_Controller {

	/**
	* __construct
	*
	* @access public
	* @return string $mixed
	*/
	public function __construct() {
        parent::__construct();
		ini_set("display_errors","on");
		error_reporting(E_ALL & ~E_NOTICE);
		set_time_limit(0);
	}

	public function crawl_keyword_from_html() {
		//$post_data = $this->input->post();
		$_POST['word'] = '回龙观';
		$_POST['platform'] = 'netease';

		$this->load->database();
        $this->load->library('crawl_abstract');
        $this->load->library('crawl_keyword_library');
	    $this->load->library('crawl_netease_keyword_from_html_library');

	    $api_crawl_result = $this->crawl_netease_keyword_from_html_library->crawl(TRUE);
		var_dump($api_crawl_result);
	}


}